//原型模式
function Person(name){}
Person.prototype.name='kenin'
Person.prototype.getName=function(){
    console.log(this.name)
}
var person1=new Person('wang');
console.log(person1.name)